package com.atguigu.day02.homework;

public class HomeWork5 {
    public static void main(String[] args) {
        int hours = 89;
        int day;
        int hour;
        day = hours / 24;
        hour = hours % 24;
        System.out.println("为抵抗洪水，战士连续作战89个小时");
        System.out.println("共" + day + "天" + hour + "小时");
    }
}
